import request from "@/middleware/request";


// admin/recover_qa
async function recover_qa(param) {
    return await request("admin/recover_qa", "POST", param)
}

async function get_deleted() {
    return await request("admin/get_deleted", "POST", {})
}

async function delete_qa(param) {
    return await request("admin/delete_qa", "POST", param)
}

async function get_share(param) {
    return await request("admin/share", "POST", param, true)
}

async function get_a_detail(param) {
    return await request("admin/get_a_detail", "POST", param)
}

async function get_q_total(param) {
    return await request("admin/get_q_total", "POST", param)
}

async function answer(param) {
    return await request("answer", "POST", param)
}

async function get_q(param) {
    return await request("get_q", "POST", param)
}

async function create_qa(param) {
    return await request("create_qa", "POST", param)
}

async function admin_update_qa(param) {
    return await request("update_qa", "POST", param)
}

async function admin_get_q(param) {
    return await request("admin/get_q", "POST", param)
}

async function login(param) {
    return await request("login", "POST", param);
}

export {
    login,
    admin_get_q,
    admin_update_qa,
    create_qa,
    get_q,
    answer,
    get_q_total,
    get_a_detail,
    get_share,
    delete_qa,
    get_deleted,
    recover_qa,
}